org.eclipse.vtp.framework.engine.http
Class HttpConnectorServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.eclipse.vtp.framework.engine.http.HttpConnectorServlet
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
public class HttpConnectorServlet
- extends javax.servlet.http.HttpServlet
An HttpServlet implementation that forwards invocations to an
HttpConnector.
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Lonnie Pryor
- See Also:
- Serialized Form
|
Method Summary |
protected void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
|
protected void |
doHead(javax.servlet.http.HttpServletRequest arg0,
javax.servlet.http.HttpServletResponse arg1)
|
protected void |
doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
|
protected void |
process(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Process an HTTP GET or POST request. |
| Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doOptions, doPut, doTrace, getLastModified, service, service |
| Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HttpConnectorServlet
public HttpConnectorServlet(HttpConnector connector)
- Creates a new HttpConnector.
- Parameters:
engine - The HttpConnector instance to use.
process
protected void process(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws javax.servlet.ServletException,
java.io.IOException
- Process an HTTP GET or POST request.
- Parameters:
req - The HTTP request object.res - The HTTP response object.
- Throws:
javax.servlet.ServletException - If the method fails to complete.
java.io.IOException - If the network connection fails.
doHead
protected void doHead(javax.servlet.http.HttpServletRequest arg0,
javax.servlet.http.HttpServletResponse arg1)
throws javax.servlet.ServletException,
java.io.IOException
- Overrides:
doHead in class javax.servlet.http.HttpServlet
- Throws:
javax.servlet.ServletException
java.io.IOException
doGet
protected final void doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws javax.servlet.ServletException,
java.io.IOException
- Overrides:
doGet in class javax.servlet.http.HttpServlet
- Throws:
javax.servlet.ServletException
java.io.IOException
doPost
protected final void doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws javax.servlet.ServletException,
java.io.IOException
- Overrides:
doPost in class javax.servlet.http.HttpServlet
- Throws:
javax.servlet.ServletException
java.io.IOException